@@include("_includes/header.html", {"title": "tabspace"})

<div class="wrapper">
<div class="content">
    <h2>tabspace</h2>

    <p>
        tabspace is a small command line tool that converts
        tabs to spaces or spaces to tabs automatically in
        files. It also removes spaces at the end of lines.
    </p>
    <p>
        It works with <a href="https://en.wikipedia.org/wiki/Windows-1252">ANSI</a>,
        <a href="https://en.wikipedia.org/wiki/UTF-8">UTF-8</a> and even
        <a href="https://en.wikipedia.org/wiki/UTF-16">UTF-16</a> (on Windows mostly
        referred to as Unicode) files alike.
    </p>
    <p>
        The conversion is done so that the alignment always stays the
        same - the conversion does not simply replace the characters,
        but uses an algorithm to find out how the replacement has to be done.
    </p>
    <p>
        The command line is:
    </p>
<pre>
tabspace [/path:&quot;path\to\convert&quot;] [/checkonly] [/usetabs]
         [/tabsize:4] [/leaveeol] [/ext:&quot;extension;list&quot;]
</pre>
    <dl>
        <dt>/path</dt>
        <dd>specifies the path where all the files are to be converted</dd>
        <dt>/checkonly</dt>
        <dd>if specified, the files are not modified but only an info is shown</dd>
        <dt>/usetabs</dt>
        <dd>convert spaces to tabs instead of tabs to spaces</dd>
        <dt>/tabsize</dt>
        <dd>specifies the tab size, defaults to 4</dd>
        <dt>/leaveeol</dt>
        <dd>if specified, whitespaces at the end of lines are not removed</dd>
        <dt>/ext</dt>
        <dd>a list of file extensions to scan, other extensions are ignored.
            Defaults to <code>c;cc;cpp;cs;cxx;h;hpp;hxx</code></dd>
        <dt>/include</dt>
        <dd>a list of patterns to include, separated by <code>;</code>.
            If this is set, <code>/ext</code> must not be set!<br>
            For example <code>c:\sub1\*.*;*\sub2\*.cpp</code>.</dd>
        <dt>/exclude</dt>
        <dd>a list of patterns to ignore, separated by <code>;</code>.<br>
            For example <code>c:\sub1\*.*;*\sub2\*.cpp</code>.</dd>
    </dl>
    <p>
        You can download the tool from <a href="https://sourceforge.net/projects/stefanstools/files/Tabspace/">here</a>.
        The source code is <a href="https://sourceforge.net/p/stefanstools/code/HEAD/tree/trunk/Misc/tabspace/">here</a>.
    </p>
</div>
</div>

@@include("_includes/footer.html")
